<template>
	<!-- 单选多选 -->
	<BaseField v-bind="props">
		<div class="field-text">
			<div class="view" v-if="status === 'view'" style="display: flex; flex-wrap: wrap; gap: 8px">
				<ComTag>
					{{ getValue(fieldType, prop, modelValue) }}
				</ComTag>
			</div>
			<div class="edit" style="width: 100%" v-else>
				<ComUploadFile></ComUploadFile>
			</div>
		</div>
	</BaseField>
</template>

<script setup lang="ts">
import { getValue } from "@/utils/field";
import { propsInfo } from "./utils/props";
import { useWatchText } from "./utils/useWatchText";
const props = defineProps(propsInfo);
const emit = defineEmits(["update:modelValue",'update:fieldShow']);

const dataValue: any = useWatchText(props, emit);
</script>

<style scoped></style>
